package main

import (
	"fmt"
)

type Person struct{
	//Name string 
	Age int 
}

type Student struct{
	//P1,P2,P3 Person
	P1,P2,P3 Person
}

func main(){


	//var stu Student = Student{Person{"jack",100},Person{"tom",200},Person{"lucy",300}}
	var stu Student = Student{Person{1},Person{2},Person{3}}
	fmt.Printf("s1.Age=%p,s2.Age=%p,s3.Age=%p\n",&stu.P1.Age,&stu.P2.Age,&stu.P3.Age)

	fmt.Println(stu)
	// var p1 Person 
	// p1.Name="jack"
	// p1.Age=100

	// var p2 *Person = &p1 

	// fmt.Println(p1.Name,p2.Name,(*p2).Name)

	// fmt.Printf("%p,%p,%p\n",&p1,&p2,p2)
}